import org.annotation.t.autowire.config.Configuration;
import org.annotation.t.autowire.dao.impl.PersonImpl;
import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestD {
    @Test
    public void test1(){
        ApplicationContext context = new AnnotationConfigApplicationContext(Configuration.class);
        PersonImpl bean = context.getBean(PersonImpl.class);
        bean.eat();
    }
}
